package com.usian.wemedia.conreoller;

import com.usian.apis.wemedia.WmMaterialControllerApi;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.wemedia.service.WmMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/material")
public class WmMaterialControlle implements WmMaterialControllerApi {
    @Autowired
    WmMaterialService wmMaterialService;

    @PostMapping("/uploadfile")
    @Override
    public ResponseResult uploadPicture(MultipartFile multipartFile) {
        return wmMaterialService.uploadPicture(multipartFile);
    }
}
